package com.bmw.regist.common.exception;

/**
 *
 */
public enum ErrorMessage {

    SMSCODE_ERROR(30001, "密码错误"),
    PHONE_EXIST(30002, "手机号已经存在"),
    REPEAT_ORDER_ERROR(5555,"用户重复注册" );



    private Integer code;
    private String message;

    ErrorMessage(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public ErrorMessage setMessage(String message) {
        this.message = message;
        return this;
    }
}
